﻿<html>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <head>
        <title>
            企业进销存系统
        </title>
        <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen"/>
        <link rel="stylesheet" href="../css/common2.css" type="text/css" media="screen"/>
        <link rel="stylesheet" href="./css/selectedDay.css"/>
        <script type="text/javascript" src="./js/selectedDay.js"></script>
        <script type="text/javascript" src="../js/jquery-1.8.3.min.js"></script>   
        <script>
            var index = 1;
            function insertRow(tbIndex){
               var objRow = product.insertRow(tbIndex);
               var objCel = objRow.insertCell(0);
               objCel.innerHTML = "产品类型： <select> <option>sdsafasfa</option><option>dssafasdfas</option></select>"
               var objCel = objRow.insertCell(1);
               objCel.innerHTML = "产品名称： <select> <option>sdsafasfa</option><option>dssafasdfas</option></select>"
               var objCel = objRow.insertCell(2);
               objCel.innerHTML = "数量： <input type='text' value='"+index+"'/>"
                index++;
            }
            function deleteRow(tbIndex){
                if(index > 1){
                    index--;
                    product.deleteRow(index);
                    
                }
            }
        </script>
    </head>
    
    <body >
       <div class="content-box">
            <div class="content-box-header">
                <h3>向供应商退货</h3>
            </div>
            <div class="content-box-content">
                <table class="input-content-table">
                    <tr>
                        <td>供应商:</td>
                        <td>
                            <select>
                                <option>sdsafasfa</option>
                                <option>dssafasdfas</option>
                            </select>
                        </td>
                    </tr>
                    <tr>
                       <td>退货时间:</td>
                        <td>
                            <input class="Wdate" type="text" id="Wdate" onfocus="HS_setDate(this)" />
                        </td>
                    </tr>
                    <tr>
                       <td>经办人:</td>
                        <td>
                            <select>
                                <option>sdsafasfa</option>
                                <option>dssafasdfas</option>
                            </select>
                        </td>
                    </tr>
                    <tr>
                       <td style="vertical-align:top; ">产品:</td>
                        <td>
                            <table class="product-table"  id="product">
                                <tr>
                                    <td>
                                        产品类型：
                                        <select>
                                            <option>sdsafasfa</option>
                                            <option>dssafasdfas</option>
                                        </select>
                                    </td>
                                    <td>
                                        产品名称：
                                        <select>
                                            <option>sdsafasfa</option>
                                            <option>dssafasdfas</option>
                                        </select>
                                    </td>
                                    <td>
                                        数量：
                                        <input type='text' value='1'/>
                                    </td>
                                    
                                </tr>
                            </table>
                            
                        </td>
                        <td style="vertical-align:middle; ">
                            <a href="#" class='add' onclick="insertRow(index)" >+</a> 
                            <a href="#" class='add' onclick="deleteRow(index)" >-</a>
                        </td>
                    </tr>
                    <tr>
                       <td style="vertical-align:top; ">备注:</td>
                        <td>
                           <textarea>dhfgafuashhfusdhi</textarea>
                        </td>
                    </tr>
                    <tr>
                       <td></td>
                        <td>
                           <div class='button'>确认退货</div> 
                           <div class='button'>重新填写</div>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </body>
    <script>
    
    </script>

</html>